<div class="post">

  <?php include_partial('global/actions', array('module' => 'post', 'id' => $post->getId())); ?>
  
  <h2><?php echo link_to($post->getTitle(), '@default?lang='.$sf_user->getLang().'&module=post&action=show&handle='.$post->getHandle()); ?></h2>
  <div class="datetime"><?php echo $post->getDatetime() ?></div> 
  <div class="content"><?php echo $post->getContent() ?></div> 
  
  <?php $i = 0; ?>
  <?php foreach ($post->getImages() as $image): ?>
  
    <?php if ($i === 0): ?>
      <div class="yui-g"><div class="yui-gb first">
      <div class="yui-u first">
    <?php else: ?>
      <div class="yui-u">
    <?php endif; ?>
  
    <?php include_partial('post/thumb', array('image' => $image, 'type' => 'thumb')); ?>
    
    <?php $i++; ?>
    
    <?php if ($i === 3): ?>
      <?php $i = 0; ?>
      </div></div></div>
    <?php else: ?>
      </div>
    <?php endif; ?>
    
  <?php endforeach; ?>
  
  <?php if ($i !== 0): ?>
    <?php for ($n = $i; $n < 3; $n++): ?>
      <div class="yui-u">&nbsp;</div>
    <?php endfor; ?>
    </div></div>
  <?php endif; ?>
  
  <?php include_partial('tag/tags', array('post_tags' => $post->getPostTagsJoinTag(), 'mode' => 'blog')); ?>
</div>
